define(function() {
	
	'use strict';
	
	//var ip = '192.168.1.100:8080'
	
	var ip = '222.243.168.34:9999'

	var wspath = '/websocket/dqpf/';

	var connectStatus;

	//获取联网状态
	function getConnect(){
		return connectStatus;
	}
	
	//设置联网状态
	function setConnect(data){
		connectStatus = data;
	}

	function setWsPath(userid){
		config.ws = 'ws://' + ip + wspath + userid;
	}

	function getWsPath(){
		return config.ws;
	}

	var config ={
		
		ws			: 'ws://' + ip + wspath,

		base		: 'http://' + ip,

		appBase		: '/app',
		
		login		: '/biz/login.action',

		//获取联网状态
		getConnect	: getConnect,

		//设置联网状态
		setConnect	: setConnect,
		
		setWsPath	: setWsPath,
		
		getWsPath	: getWsPath

	}

	return config;
	
})